/** 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. 
*/ 
package com.intel.cosbench.api.librados;

import static com.intel.cosbench.client.librados.LibradosConstants.AUTH_PASSWORD_KEY;
import static com.intel.cosbench.client.librados.LibradosConstants.AUTH_USERNAME_KEY;
import static com.intel.cosbench.client.librados.LibradosConstants.ENDPOINT_KEY;

import com.intel.cosbench.config.Config;
/**
 * 
 * @author Niklas Goerke niklas974@github
 * 
 */
public class DummyConfig implements Config {

    private final String endpoint = "127.0.0.1";
    private final String accessKey = "admin";
    private final String secretKey = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==";
    
    @Override
    public String get(String key) {
        return null;
    }

    @Override
    public String get(String key, String value) {

        if(key == ENDPOINT_KEY) {
            return this.endpoint;
        } else if (key == AUTH_USERNAME_KEY) {
            return this.accessKey;
        } else if (key == AUTH_PASSWORD_KEY) {
            return this.secretKey;
        } else {
            return null;
        }
        
    }

    @Override
    public int getInt(String key) {
        return 0;
    }

    @Override
    public int getInt(String key, int value) {
        return 0;
    }

    @Override
    public long getLong(String key) {
        return 0;
    }

    @Override
    public long getLong(String key, long value) {
        return 0;
    }

    @Override
    public double getDouble(String key) {
        return 0;
    }

    @Override
    public double getDouble(String key, double value) {
        return 0;
    }

    @Override
    public boolean getBoolean(String key) {
        return false;
    }

    @Override
    public boolean getBoolean(String key, boolean value) {
        return false;
    }

}
